﻿package com.dg.gaming.api.common{

	/**
	 * ...
	 * @author 
	 */
	public class IGame {
		// Declare some  constants.
		public static const DATE_FORMAT_FULL:String="dd/MM/yyyy-hh:mm:ss";
		public static const DATE_FORMAT_TIME:String="hh:mm:ss";

		/** Link to the current version of DG. */
		public static const VERSION:String="beta 0.3";

		/** Key to the master server. */
		public static const MASTER_SERVE_KEY:String="master_server";

		/** Key to the administrator. */
		public static const ADMINISTRATOR:Number=0;
		/** Key to the administrator. */
		public static const ADMINISTRATOR_GAME:String="admin";
		/** Default port that DG runs on. */
		public static const DEFAULT_PORT:Number=1790;

		/** Default number of players (2). */
		public static const DEFAULT_NUM_OF_PLAYERS:Number=2;

		/** Default minimum number of players (2). */
		public static const DEFAULT_MIN_NUM_OF_PLAYERS:Number=2;

		/** Default maximum number of players (2). */
		public static const DEFAULT_MAX_NUM_OF_PLAYERS:Number=2;

		/** Default required number of players (2). */
		public static const DEFAULT_REQ_NUM_OF_PLAYERS:Number=2;

		/** Default maximum number of table (2). */
		public static const DEFAULT_MAX_NUM_OF_TABLES:Number=50;

		/** Default number of tables per user */
		public static const DEFAULT_MAX_NUM_OF_TABLES_PER_USER:Number=2;

		/** Default ELO starting rating for new users. */
		public static const DEFAULT_ELO_START_RATING:Number=1200;

		/** Default ELO k factor. */
		public static const DEFAULT_ELO_K_FACTOR:Number=24.0;

		/** Number of games a user must complete not to be provisional. */
		public static const PROVISIONAL_COUNT:Number=10;

		/** Default value if an admin receives all client messages". */
		public static const ADMIN_RECEIVE_MESSAGES:Boolean=true;

		/**
		 * Default maximum number of users which is multiplied by the number
		 * of games running.
		 */
		public static const DEFAULT_MAX_NUM_OF_USERS:Number=100;

		/** Applet parameter "username". */
		public static const APPLET_PARAM_USERNAME:String="username";

		/** Applet parameter "password". */
		public static const APPLET_PARAM_PASSWORD:String="password";

		/** Applet parameter "serverhost". */
		public static const APPLET_PARAM_SERVER_HOST:String="serverhost";

		/** Applet parameter "serverport". */
		public static const APPLET_PARAM_SERVER_PORT:String="serverport";

		/** Applet parameter "language". */
		public static const APPLET_PARAM_LOCALE:String="language";

	}

}